package vaani.internal.purple;

import java.util.Vector;

/**
 *
 * @author sourcemorph
 */
public class AccountList extends Vector<InstantMessageAccount> {

    public boolean contains(String x, String y) {
        if(indexOf(x, y) != -1)
            return true;
        return false;
    }

    public int indexOf(String x, String y) {
        for(InstantMessageAccount a : this) {
            if(a.getUserID().equals(x) && a.getProtocol().equals(y))
                return this.indexOf(a);
        }
        return -1;
    }
}
